package com.xnyzc.lhy.mis.mapper.cms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyzc.lhy.common.component.config.GlobalConfig;
import com.xnyzc.lhy.mis.entity.cms.OaSysMenu;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author liuju
 * @since 2019-08-13
 */
public interface OaSysMenuMapper extends BaseMapper<OaSysMenu> {

    /**
     * 查询所有结构数据列表
     * @return
     */
    List<OaSysMenu> menuAllList();

    List<OaSysMenu> menuRootList();

    List<OaSysMenu> menuRootAllList();

    List<OaSysMenu> menuByUserId(GlobalConfig config);

    List<OaSysMenu> menuRootByUserId(GlobalConfig config);

}
